/*
* Copyright (c)  2017, ueboot.com
* All rights reserved.
* 2017-10-14 21:28:34
*/
package com.ueboot.weishop.repository.goods;

import com.ueboot.weishop.entity.goods.GoodsInfoEntity;
import com.ueboot.core.repository.BaseRepository;
import com.ueboot.weishop.entity.setting.BrandEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  Created by yangkui  on 2017-10-14 21:28:34.
 *
 * @since 2.0 by autocode
 */
@Repository
public interface GoodsInfoRepository extends BaseRepository<GoodsInfoEntity, Long> {


    Page<GoodsInfoEntity> findByActivityFullPathIds(Pageable pageable, String activityFullPathIds);

    /**
     * 根据活动ID，查找活动对应的商品
     * @param activityId
     * @return
     */
    List<GoodsInfoEntity> findByActivityId(Long activityId);


    /**
     * 根据分类ID，查找分类对应的商品
     * @param categoryId
     * @return
     */
    List<GoodsInfoEntity> findByCategoryId(Long categoryId);

}
